package com.atguigu.self.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.self.common.utils.PageUtils;
import com.atguigu.self.gulimall.ware.entity.WareSkuEntity;

import java.util.Map;

/**
 * 商品库存
 *
 * @author lixinyang
 * @email lixinyang@gmail.com
 * @date 2021-02-06 21:34:52
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 添加商品库存
     *
     * @param skuId
     * @param wareId
     * @param skuNum
     */
    void addStock(Long skuId, Long wareId, Integer skuNum);
}

